package com.dyc.maitaole.service.impl;

import com.dyc.maitaole.dao.CategoryBrandDAO;
import com.dyc.maitaole.entity.Brand;
import com.dyc.maitaole.service.CategoryBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryBrandServiceImpl implements CategoryBrandService {
    @Autowired
    private CategoryBrandDAO categoryBrandDAO;

    public List<Brand> findAllBrandByCategoryId(Integer categoryId) {
        List<Brand> brands = categoryBrandDAO.queryAllBrandByCategoryId(categoryId);
        return brands;
    }
}
